package com.canaan.business.domain.storehouse;

import com.canaan.common.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.canaan.common.annotation.Excel;
import com.canaan.common.core.domain.BaseEntity;

/**
 * 移库对象 wms_stock_transfer
 *
 * @author 
 * @date 2023-02-17
 */
@ApiModel(description = "wms_stock_transfer")
@Data
@TableName("wms_stock_transfer")
public class StockTransfer extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("id")
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    @ApiModelProperty("编号")
    private String no;

    /** 条码 */
    @Excel(name = "条码")
    @ApiModelProperty("条码")
    private String barcode;

    /** 物料编号 */
    @Excel(name = "物料编号")
    @ApiModelProperty("物料编号")
    private String productNo;

    /** 来源仓库 */
    @Excel(name = "来源仓库")
    @ApiModelProperty("来源仓库")
    private String sourceStorehouse;

    /** 来源库位 */
    @Excel(name = "来源库位")
    @ApiModelProperty("来源库位")
    private String sourceLocationNo;

    /** 目标仓库 */
    @Excel(name = "目标仓库")
    @ApiModelProperty("目标仓库")
    private String targetStorehouse;

    /** 目标库位 */
    @Excel(name = "目标库位")
    @ApiModelProperty("目标库位")
    private String targetLocationNo;

    /** 是否删除：1是 0否 */
    @ApiModelProperty("是否删除")
    private String delFlag;

    @ApiModelProperty("排序")
    private Integer sort;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("barcode", getBarcode())
            .append("productNo", getProductNo())
            .append("sourceStorehouse", getSourceStorehouse())
            .append("sourceLocationNo", getSourceLocationNo())
            .append("targetStorehouse", getTargetStorehouse())
            .append("targetLocationNo", getTargetLocationNo())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("sort", getSort())
            .toString();
    }
}
